]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Prevent doing redundant work
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 30 Dec 2012 16:29:32 +0000 (11:29 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 30 Dec 2012 19:09:39 +0000 (14:09 -0500)
We already calculated and created a gicon based on the icon and hints.

https://bugzilla.gnome.org/show_bug.cgi?id=680414

js/ui/notificationDaemon.js

index ff6c25f06eac66807a0ab15a02282b70824b44ea..6f63b589d3c3ac64bbf0bc06cb5da1dc6589ef60 100644 (file)
@@ -435,7 +435,7 @@ const NotificationDaemon = new Lang.Class({
         // of the 'transient' hint with hints['transient'] rather than hints.transient
         notification.setTransient(hints['transient'] == true);
 
-        let sourceGIcon = source.useNotificationIcon ? this._iconForNotificationData(icon, hints) : null;
+        let sourceGIcon = source.useNotificationIcon ? gicon : null;
         source.processNotification(notification, sourceGIcon);
     },